import request from '@/utils/request'

// 查询壁纸列列表
export function listWpWallpaperList(query) {
  return request({
    url: '/module/wpWallpaperList/list',
    method: 'get',
    params: query
  })
}

// 查询壁纸列详细
export function getWpWallpaperList(id) {
  return request({
    url: '/module/wpWallpaperList/' + id,
    method: 'get'
  })
}

// 新增壁纸列
export function addWpWallpaperList(data) {
  return request({
    url: '/module/wpWallpaperList',
    method: 'post',
    data: data
  })
}

// 修改壁纸列
export function updateWpWallpaperList(data) {
  return request({
    url: '/module/wpWallpaperList',
    method: 'put',
    data: data
  })
}

// 删除壁纸列
export function delWpWallpaperList(id) {
  return request({
    url: '/module/wpWallpaperList/' + id,
    method: 'delete'
  })
}

// 上传壁纸
export function handleUploadWp(data){
  return request({
    url: '/module/wpWallpaperList/upload',
    method: 'post',
    data: data
  })
}
